[OpenLayers-Users] Vectors layer over Google
Heidt, Christopher M.
CHRISTOPHER.M.HEIDT at saic.com
Thu Aug 6 13:32:59 EDT 2009
http://docs.openlayers.org/library/spherical_mercator.html
read this over paying special notice to the projection transformation sections.
-----Original Message-----
From: users-bounces at openlayers.org on behalf of taviroquai
Sent: Thu 8/6/2009 10:32 AM
To: users at openlayers.org
Subject: [OpenLayers-Users] Vectors layer over Google
Hi all!
I'm using the sphericalMercator has recomended in
http://trac.openlayers.org/wiki/SphericalMercator
What am i doing wrong? It should be simple like this:
map = new OpenLayers.Map('map');
map.addControl(new OpenLayers.Control.LayerSwitcher());
var base = new OpenLayers.Layer.Google(
"Google Hybrid",
{type: G_HYBRID_MAP, numZoomLevels: 20, sphericalMercator:
true}
);
var wvect = new OpenLayers.Layer.GML("World Borders", "doc.kml",
{
format: OpenLayers.Format.KML,
formatOptions: {
extractStyles: true,
extractAttributes: true,
maxDepth: 20
}
});
map.addLayers([base, wvect]);
map.setCenter(new OpenLayers.LonLat(10.2, 48.9), 3);
The doc.kml i got from
http://bbs.keyhole.com/ubb/ubbthreads.php?ubb=showflat&Number=300541&page=all
I would like to click on a contry and pop up information from the doc.kml.
Thanks in advance.
Marco
--
View this message in context: http://n2.nabble.com/Vectors-layer-over-Google-tp3398605p3398605.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090806/e65f9181/attachment.html
More information about the Users
mailing list