문제

Is it possible to place (say 1000) markers (using set of LAT-LONG values) on Static Google map image? Also, is there some sort of HTTP POST method to achive this or URL is the only way to go?

Basically, I was looking into Bing maps REST service - Imagery and I found that maximum 100 pushpins (markers) can be placed on to Bing map.

I would like to generate static map with unlimited markers/pushpins. Google or Bing does not matter.

Something like this: http://msdn.microsoft.com/en-us/library/ff701724.aspx#code-snippet-19

도움이 되었습니까?

해결책 2

The documentation for static maps states:

URL Size Restriction

Static Map URLs are restricted to 2048 characters in size. In practice, you will probably not have need for URLs longer than this, unless you produce complicated maps with a high number of markers and paths. Note, however, that certain characters may be URL-encoded by browsers and/or services before sending them off to the Static Map service, resulting in increased character usage. For more information, see Building a Valid URL.

다른 팁

As far as I know there is no limit on how many markers you can add to a google-maps based map - however the performance of your map will decrease when you add a lot of them.

There is a nice article on developers.google.com (https://developers.google.com/maps/articles/toomanymarkers) that shows how to deal with lots of placemarks by either clustering them or rendering them on a separate layer.

I am pushing over 16000 markers with no problem at all, not even performance. I am using the javascript API, as long as you can put that into a variable, and push it to the canvas at a reasonable pase (1 per seccond is the speed i am pushing the markers ) there's no problem

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top