[OpenLayers-Users] Problems with Google and projection
giris68
per-erik.modig at itmedia.se
Thu Mar 6 03:02:06 EST 2008
giris68 wrote:
>
> Hi!
> I'm an newbee to OL and have now spent a week trying to draw an polygon on
> an GoogleMap.
> My last attempt is an slight modification of the geoRSS demo.
>
> I have to problems, maybe the first one is caused by the second...
>
> 1. The polygon doesn't sync on the map where i draw with the mouse.
> Obviously many have problems to view a VMS layer on an Google Map, but
> why can't i draw an polygon directly? (Theresn't no different to use
> displayProjection or not)
>
> 2. When i add displayProjection i got the message:
> point has no properties
> transform(EPSG:900913 projCode=EPSG:900913 proj=Object, EPSG:4326
> projCode=EPSG:4326 proj=Object)LonLat.js (line 129)
> redraw(mousemove clientX=0, clientY=0)MousePosition.js (line 127)
> triggerEvent("mousemove", mousemove clientX=0, clientY=0)Events.js (line
> 665)
> handleBrowserEvent(mousemove clientX=0, clientY=0)Events.js (line 691)
> bindAsEventListener(mousemove clientX=0, clientY=0)BaseTypes.js (line 364)
> [Break on this error] this.lon = point.x;
> from firebug.
>
> The last error seems to be proj4js error ? (How do i install proj4js
> correctly?)
>
> I'm using the trunkversion of OL since a couple of days ago.
>
> http://www.itmedia.se/soft/maps/demonabble.php
> http://www.itmedia.se/soft/maps/demonabble.php
>
>
>
Thanks!
That helped a lot.
Problem no 2 is still there, do you know why the control.MousePosition
doesn't work?
There is no difference betwwen using EPSG:4326 or EPSG:4124 (the one I
probably will use)
/Per-Erik
--
View this message in context: http://www.nabble.com/Problems-with-Google-and-projection-tp15863637p15868272.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list