Tag Info

Hot answers tagged

2

I cannot add a comment yet but this is a possible source of Pete's reply above: https://developers.google.com/maps/documentation/javascript/maptypes#MapCoordinates [...] note that each increasing zoom level is twice as large in both the x and y directions. Therefore, each higher zoom level contains four times as much resolution as the preceding level. ...


2

I found this response - written by a Google employee - this would probably be the most accurate one: " This won't be accurate, because the resolution of a map with the mercator projection (like Google maps) is dependent on the latitude. It's possible to calculate using this formula: 156543.03392 * Math.cos(latLng.lat() * Math.PI / 180) / Math.pow(2, zoom) ...


1

You could use Tilemill to create your own baselayer, convert them with mbutils to a folder-Structure and use a OpenLayers.Layer.XYZ where you point to your local tiles. https://www.mapbox.com/tilemill/ https://github.com/mapbox/mbutil http://dev.openlayers.org/docs/files/OpenLayers/Layer/XYZ-js.html works also on mobile devices if you convert your app ...


1

There is a plugin that will solve this for you called the OpenLayers plugin that allows you to add Google, Bing and MapQuest basemaps to your project. With regards to the CRS check out this answer: Why does Google satellite layer change the project CRS? (You can use on the fly reprojection to help with this as well) Also bear in mind that there are licence ...


1

You might want to use the Openlayers plugin, which includes imagery from Google Satellite.


1

You have a few of useful functions in the Google Maps JavaScript API V3 Reference under the google.maps.geometry.spherical namespace, namely computeDistanceBetween computeHeading computeOffset It's not quite possible to complete what you need with just those, but you could try using something from the JSTS library to fill the gap. For example, you could ...


1

You can layer polygons on top of one another by using google fusion tables (https://support.google.com/fusiontables/answer/2571232?hl=en ) . Here is a starting point to understand how to make a map with them https://support.google.com/fusiontables/answer/184641?hl=en


1

There seem to be a string of questions posed which seek resolution of problems with the OpenLayers and [often] Google Satellite. I thought I had landed on what seemed to cure the problem: After creating the layer using Google Satellite, I moved that layer to the bottom, as a base map. After that, the pan and zoom issues seem to disappear. I am using ...


1

getMap() is deprecated. Use callback setOnMapLoadedCallback which is called when the map finishes loading. googleMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() { @Override public void onMapLoaded() { //Add markers here googleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 15)); ...


1

Thanks for your answer! The solution I found more appropriate and clean is using Canvas indeed I paste the key part of the code. - Icon variable is the key for Google Map - The call back is a function that takes the variable Marker (since the construction of Canvases can be asynchronous.) var canvas = document.createElement("canvas"); ...



Only top voted, non community-wiki answers of a minimum length are eligible