The GAS map tutorial covers staticmaps, but can you create a dynamic map with zoom and pan capability? Is this a limitation of GAS versus the full Maps API?
Thanks.
Please take a look at the issue on the Issue Tracker. Summary: The functionality is not available now, but it may be in the near future.
Related
Since Google Static Maps imposes a daily quota on its service (and so does Google Maps JavaScript API unfortunately), I'm considering instead Microsoft's Bing Static Maps API. With Google it was enough to include on my website one line of code:
<img class="google_maps" src="http://maps.googleapis.com/maps/api/staticmap?center=48.2044544,16.3706368&zoom=9&markers=color:red%7Clabel:A%7C48.2044544,16.3706368&size=200x200&key=XXXXXXXXXXXX">
Bing's example code snippet
http://dev.virtualearth.net/REST/v1/Imagery/Map/imagerySet/centerPoint/zoomLevel?mapSize=mapSize&pushpin=pushpin&mapLayer=mapLayer&format=format&mapMetadata=mapMetadata&key=BingMapsKey
seems to follow the same logic, but I couldn't get it to work. Has anybody experience
whether there is really no limit (in practice) for using the Bing Maps API
How to correctly include a bing map in my website?
Thank you!
Full documentation on how to use the static Imagery service in Bing Maps can be found here: https://msdn.microsoft.com/en-us/library/ff701724.aspx
I know it doesn't answer the main question, but the OP mentioned the reason he has the problem is because of the daily quota. So I came here to offer an free to use/self hosted alternative I made just to cincurvent that. It's sort of a clone of google static maps called osm-static-maps, you can find it here https://github.com/jperelli/osm-static-maps
I'm looking to create and use geofences using Mapbox API and cannot find any documentation available. In my case, the geofences would alert my users of a map-based mobile app when they are within a certain radius of a Point of Interest.
Gmaps has a nice section for developers here:
https://developers.google.com/maps/documentation/tracks/geofences
Has anyone used or found documentation for geofencing with Mapbox?
Thank you for your help!
There is no documentation because this feature does not exist yet. I would recommend maybe something like Esri's GeoTrigger API for this.
Esri GeoTrigger Service is now in beta. https://developers.arcgis.com/geotrigger-service/
Once out of beta it will use 1 service credit per 12 triggers
This feature is now available.
GeoFencing with MapBox
I want user to be able to enter source/destination and take a virtual tour of the route.
PHP is my preferred solution. I am not sure where to start from. I do not have much experience with Google map 3D APIs so need some pointers.
I need something that is similar to Google maps's Helicopter view feature. Gives a bird's eye tour of your route.
Thanks in advance!
You will want to use Javascript, which powers the Google Earth API
Check out the examples at the code playground, especially how to create a line string (for your route) and how to move the camera
I am looking for a solution for cloudmade that will let me click a point on the map and set a radius for a circle. I was wanting to get the cleanest interface to do this. I looked on the cloudmade forums and the devs said that they have not put this into the API. I am looking for something like this page. I would use google maps but we are using it for internal use and do not have the 10,000 dollars to pay for google map license.
Thanks in advance.
My solution was to get the point and use MySQL lat long to do the calculations.
I am planning to release a commercial website (I have ads there and a shop) which is freely available for everybody. I want to add a google map to show some points of interest. The question is: Do I need the google api key for that or can I just use the iframe code that google gives me? Theoretically that would work, too.
I searched google, but could not find a clear answer...
Thanks :-)
v2 of the Google Maps API is deprecated, so you should ideally use v3.
v3 does not need an API key as mentioned in the documentation.
Since v3 is the official version now, I assume the links given in google maps are for the version. You can always just try and see if embedding the iframe works for you. Though as noted, you can't really customize the map, so you should use the API. It's very simple to set up a basic map (read the tutorial).
You don't need the Google Maps API key as long as you don't plan to include any special or customized maps in your website.
Using the iframe version is fine for basic Maps integration.
The API Key is free anyway, so there is no problem in obtaining one. You should also be free to use the iframe as well, as long as your site is publicly available to everyone without a payed login or anything like that.
As long as you meet Google Maps TOS, you can use both. If you don't meet those TOS, don't use any of it.
A Google Maps API key is required for v2 of the API, not for v3 as far as I know,
and neither for requests to Static Maps API v2.