When do you plan on supporting the new Google Maps Javascript API V3?
code.google.com/apis/maps/documentation/javascript/
When do you plan on supporting the new Google Maps Javascript API V3?
code.google.com/apis/maps/documentation/javascript/
Rob,
GoogleOverlay in WebEdition comes from Openlayers’ GoogleLayer. You can get the updating information about Google Maps V3 at trac.openlayers.org/ticket/2493 . Also you can have the CustomGoogleLayer inherited from OpenLayers.Layer.EventPane and OpenLayers.Layer.FixedZoomLevels on client side, but it’s much complex.
Thanks,
Johnny
Rob,
We have added GoogleAPIVersion property in GoogleOverlay to allow you switch different version of Google Maps Javascript API, please get the latest version of WebEdition (Development branch) and have a try.
Thanks,
James
I couldn't find the property GoogleAPIVersion . Does the latest version 6.0 default to Google Maps V3 by default now?
is this googleAPIversion would be helpful for desktop edition means can we use google map as base in desktop edition with C#?
Hello Kenny,
Yes, in the 6.0, Google Maps V3 is the default set.
Sarah,
Absolutely you can use google map as the base map, just set the winformsMap1.MapUnit = GeographyUnit.Meter, it will work, if you still want some shape file working with google, using proj4projection to convert the shape file the right projection and map unit.
Regard,
Gary
ok gray i’ll try this one again and what about the open street map i used osm shape file so its better to use osm map as base layer
Version 6.0 is still calling V2. Look at this generated script.
<script type="text/javascript" src="http://maps.google.com/maps?file=api&<span style="background-color: rgb(255, 0, 0);">v=2&key=ABQIAAAAWPy6wnLilLRMSWfMEdhuoBRQV7EsPEL26TgTp2j0ozEH60-7dhSqbP1HGaShubovrm3C8hLxd5rR3g"></script><script type="text/javascript" src="opl_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="extension_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="helper_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="parser_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="func_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="cm_GeoResource.axd?v=6.0.0.0"></script>
Hello Kenny,
Below is the script I generated:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.5&sensor=false"></script><script type="text/javascript" src="opl_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="extension_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="helper_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="parser_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="func_GeoResource.axd?v=6.0.0.0"></script><script type="text/javascript" src="cm_GeoResource.axd?v=6.0.0.0"></script>
Could you please check your dll version or send a sample to me?
Regards,
Gary
Fixed it. Thanks much
Hello Kenny,
I’m glad it’s working now, don’t hesitate to let us know your problem.
Regards,
Gary
Hello forum,
google layer cannot display if map units are in meter. and if we change its units from decimal to meter shape file cannot display.(google layer also cannot display). and if units are in meter .rtg file for routing cannot created.
what is this plroblem?
is there any way in which i have my .rtg file and google layer both for navigation app?
my shape file is in meters i want google layers as base layer but it has some problems it gives error
The remote name could not be resolved: ‘maps.google.com’
my code is as follow
winformsMap1.CurrentExtent = new RectangleShape(312409.372078, 3725967.771073, 314993.907006, 3723330.807692);
// add baselayer
GoogleMapsOverlay googleMapsOverlay = new GoogleMapsOverlay();
winformsMap1.Overlays.Add(googleMapsOverlay);
//Projection to go from Geodetic (Longitude/Latitude) to Google Map projection (Spherical Mercator).
Proj4Projection proj4 = new Proj4Projection();
proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326); //Geodetic projection (Longitude/Latitude).
proj4.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();
my shape file projection is UTM
Hello Sarah,
If you shape file map unit is meter, then it work with google map, you don’t need to use proj4projection to transfer it, because the google map’s map unit is meter too.
And I think "The remote name could not be resolved: ‘maps.google.com’ " this error is because your internet connection problem, could you please try to visit maps.google.com directly?
Regards,
Gary
Thanks Gray,
I have removed that projection transfer. but still google map cannot display.
secondly if my shapefile uint is in decimals(WGS84) and my mapunit is in decimal it gives error to change mapunits in meters but then neither shapfile display nor google map :(
Hello Sarah,
Have you test visit maps.google.com directly and make sure the root cause of "The remote name could not be resolved: 'maps.google.com'" exception?
And if you want to use GoogleMap, the map unit must be meter, so you need use projection transfer just like you did above, only because you said your shape file map unit is decimal degrees, I tell you to remove it.
You can refer wiki.thinkgeo.com/wiki/Map_S...Google_Map too.
Regards,
Gary
Finally using the right Google Url to call v3.
Now i’m getting an error in the generated main.js.
Microsoft JScript runtime error: ‘__e3_’ is null or not an object
function(a,b){var c=a.__e3_,c=c&&c;return!!c&&!Ad©};P.removeListener=function(a){a[ob]()};P.clearLis
Help please
Hello Kenny,
This looks like a script error but I didn’t see it before, could you please provide a self-contained sample to help us recreate it?
Regards,
Gary
The error is caused by the code that remove and add Google layer with 22 zooms on the client side that was suggested to me in the other thread.
function OnMapCreated(map){
olMap = map;
tgMap = <%=Map1.ClientID %>;
<%if(EagleLayerExists) { %>
var logoControl = olMap.getControl(‘Logo’);
if(logoControl) {
logoControl.div.style.display = ‘none’;
}
<%} %>
jQueryAndMapLoaded();
var googleOverlay = olMap.getLayersByName(‘GoogleMapsOverlayName’)[0];
var name = googleOverlay.name;
var options = googleOverlay.options;
options.numZoomLevels = 22;
var newLayer = new OpenLayers.Layer.Google(name, options);
map.removeLayer(googleOverlay);
map.addLayer(newLayer);
}
Hi Kenny,
I remember the 22 zoom levels code is provided by me, but at that time there is no this exception right? As Gary said, could you please provide a simple sample that can recreate your issue? This might be easy to solve your problems quickly.
Thanks,
Edgar