[mapguide-users] patch for Mouse Wheel Zoom,
set scale and image on loading map in Ajax.
Jorge Rubio
j.e.rubio at gmail.com
Fri Mar 30 10:44:51 EDT 2007
Hi José Manuel
the code posted below it is related to icon in the toolbar. Patch for zoom
wheel and input scale are not there. Am I missing something?.
To join internal list, you have to get involved as contributor at
http://mapguide.osgeo.org/developer.html
I visited your site, nice job!
By the way, I'm doing some translations in order to get a spanish localized
MGOS. Would you like to join me?
Regards from Córdoba, but in Argentina.
2007/3/30, José Manuel Cerrejón González <gis at mapas-sll.com>:
>
> I've try to post the code in the internal list, but I don't how to
> register. Anyway here the code. I've applied the changes on the 1.0.2, but
> in the last version works fine.
>
> Somebody who know how to do it, please e-mail me.
>
> This patch use javascript to zoom with the wheel mouse, like in AutoCAD.
>
> Another patch is to input in the scale bar, a scale manually.
>
> You can see an icon in the toolbar when the map is loading.
>
> All these changes in action here<http://wms.diphuelva.es/mapguide/phpviewersample/index.php>.
> Click on the help icon to see more features.
>
> E-mail me with any problem.
>
> Thank you.
>
> ------------------------------
>
> *[toolbar.templ]
>
> *In css:
> ------------------------------
>
> * div.cssRefresh
> {
> position: absolute;
> right:10px;
> top:4px;
> }*
> ------------------------------
>
> The body seems like this. Rotating_arrow.gif is the image. You can design
> it or use the attached:
> ------------------------------
>
> <body class="Toolbar" onload="InitDocument()" leftmargin=10 topmargin=0
> rightmargin=0 bottommargin=0 marginwidth=0>
> * <div id="divRefresh" name="divRefresh" class="cssRefresh"><img
> alt="loading"
> src="../phpviewersample/images/common/rotating_arrow.gif"></div>*
> <span id="ToolbarContent"><td></td></span>
> <div class="TextMetricsDiv" id="TextMetricsDiv"><span
> class="TextMetrics" id="Metrics"></span></div>
> </body>
> ------------------------------
>
> *[ajaxmappane.templ]
>
> *About line 1350:
> ------------------------------
>
> if(requestObj.responseXML)
> {
> var resp = ParseEnvelope(requestObj.responseXML.documentElement);
> if(resp == null)
> RequestFailed("Invalid XML response");
> else
> {
> * var frmParent = parent.frames ["tbFrame"];
> var objDivRefresh = frmParent.document.getElementById
> ("divRefresh");
> if(objDivRefresh!=null){ objDivRefresh.style.display='block';
> }
> *
> panX1 = extX1 = resp.lowerLeft.X;
> ...
> ------------------------------
>
> Line 1463 after the changes:
> ------------------------------
>
> if(safari)
> curimg = (curimg == "mapImage1"? "mapImage2": "mapImage1");
>
> * var frmParent = parent.frames ["tbFrame"];
> var objDivRefresh = frmParent.document.getElementById("divRefresh");
> if(objDivRefresh!=null){ objDivRefresh.style.display='none'; }
> *
> return false;
> }
> ------------------------------
> *Jose Manuel Cerrejon Gonzalez
> jose.cerrejon at mapas-sll.com | gis at mapas-sll.com**
> I+D
> MAPAS SLL <http://mapas-sll.com/>*
>
> **
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
Lic. Jorge Rubio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070330/5a0bb99e/attachment-0001.html
More information about the mapguide-users
mailing list