Hi César,
I'll try to explain me better, jejejeje.
I've got the jsp file where the map is shown (menu_mapa.jsp). On the map the
buttons are of zoomin, zoomout, etc. And the new buttons are to the right of
the map.
The only action of the new button is to gather the coordinates and to open a
window.
I do what you say, and I begin with an example and it works. Now, I only
have to put the correct style.
Thank you very much.
César-22 wrote:
>
> Hi,
>
> I think your problem is in the jsp file. Try to do your work like the
> developers. I tell you this, because, I don't understand several things.
>
> If you want, you can tell me what exacly you want, and if I have already
> developed, I have no problem in help you.
>
> César
>
> 2007/7/3, Eva Martínez <[EMAIL PROTECTED]>:
>>
>>
>> Thank you!! finally the zoom isn't active at the same time that the new
>> button.
>> But another problem has arisen: now when I click on the new button and
>> then
>> on other button, for example the zoom, the action execute is the new
>> button's one.
>> I can't understand it!!
>>
>>
>> César-22 wrote:
>> >
>> > Check the config.xml, and coment the line
>> > <selected>true</selected>
>> > which is the widget <Zoom In>. I hope this solution works well in your
>> > application.
>> >
>> >
>> > César
>> >
>> > 2007/7/3, Eva Martínez <[EMAIL PROTECTED]>:
>> >>
>> >>
>> >> Hi everyone,
>> >> I've got a great problem, if I click on the new button I put on, the
>> zoom
>> >> still active. I don't know what to do for zoom became inactive when
>> the
>> >> new
>> >> button is active.
>> >> Here I write what I did to create the new button.
>> >> In config.xml add in widgets "InsertarPunto":
>> >> <widgets>
>> >> <InsertarPunto id="insertarPunto">
>> >> <buttonBar>mainButtonBar</buttonBar>
>> >> <targetModel>mainMap</targetModel>
>> >> <mouseHandler>mainAoi</mouseHandler>
>> >> <class>RadioButton</class>
>> >> </InsertarPunto>
>> >>
>> >> Then I create lib\widget\InsertarPunto.js:
>> >> mapbuilder.loadScript(baseDir+"/widget/ButtonBase.js");
>> >> function InsertarPunto(widgetNode,model){
>> >> ButtonBase.apply(this,new Array(widgetNode,model));
>> >> this.doAction=function(objRef,targetNode){
>> >> if(objRef.enabled){
>> >> point=objRef.mouseHandler.model.extent.getXY(targetNode.evpl);
>> >> window.open("insertarModuloMedida.jsp?x="+ point[0] + "&y=" +
>> >> point[1],"zoom","toolbar=0,resizable =1, menubar=0, status=0,
>> location=0,
>> >> width=600, height=360"); }
>> >>
>> >> }
>> >> this.setMouseListener=function(objRef){
>> >> if(objRef.mouseHandler){
>> >> objRef.mouseHandler.model.addListener('mouseup',objRef.doAction
>> ,objRef);
>> >> }
>> >> }
>> >> this.model.addListener("loadModel",this.setMouseListener,this);
>> >> }
>> >>
>> >> The InsertarPunto's action work well, but also do the zoom.
>> >> Can anyone help me? What do I have to do?
>> >> Thank you!!
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/ZoomIn-still-active-while-new-button-is-selected-tf4017327.html#a11409239
>> >> Sent from the MapBuilder Devel mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> -------------------------------------------------------------------------
>> >> This SF.net email is sponsored by DB2 Express
>> >> Download DB2 Express C - the FREE version of DB2 express and take
>> >> control of your XML. No limits. Just data. Click to get it now.
>> >> http://sourceforge.net/powerbar/db2/
>> >> _______________________________________________
>> >> mapbuilder-devel mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel
>> >>
>> >
>> >
>> -------------------------------------------------------------------------
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > _______________________________________________
>> > mapbuilder-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ZoomIn-still-active-while-new-button-is-selected-tf4017327.html#a11412099
>> Sent from the MapBuilder Devel mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> mapbuilder-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel
>>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> mapbuilder-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel
>
>
--
View this message in context:
http://www.nabble.com/ZoomIn-still-active-while-new-button-is-selected-tf4017327.html#a11426241
Sent from the MapBuilder Devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel