I have a map with 50 or so POIs. The only problem is about 7 of them are right next to each other, and I assign custom label numbers before I submit the http post request. When I enable declutter, I can see that they are there, but my custom labels are gone.
Is there a way to use declutter with labels on the POIs?
ex without declutter (from the api doc):
https://www.mapquestapi.com/staticmap/v4/getmap?key=KEY&size=1920,1080&t...|9998,40.0692,-76.4012|5123,40.0981,-76.3461|1245,40.0697,-76.352
ex with declutter on:
https://www.mapquestapi.com/staticmap/v4/getmap?key=KEY&size=1920,1080&t...|9998,40.0692,-76.4012|5123,40.0981,-76.3461|1245,40.0697,-76.352
The first one will show my custom labels (ie 1234, 9998, 5123, 1245) and the second will just show dots. Anyone have any ideas on how the add the custom labels to the decluttered static map? I'm using a C# HTTP get if that matters.
That is exactly what I was looking for, thank you!
It seems to be limiting my marker # to three digits. Is there a way to expand this to four? If I put 1234 as the label (marker-red-1234 as the marker num), it just shows 123 with a red circle.
It appears that it's by design for 0-999. I left the post on the feedback for the v5 beta since it would be nice to have that extra digit, but I think in the meantime I'll just need to make a key to go along with the map saying "1 is 1234, 2 is 4567, etc." I just read the documentation wrong for some reason.
Is there a way to color code the flags? The docs only show the start/end flags are green/red. I probably should have mentioned that, but juxtaposing multiple things on one map is what I was using the decluttered dots with labels for, so one set of dots is yellow, one green, one red, etc. I will play with it tomorrow and see what I can compromise on if not, maybe I can figure out another way to do the map so I don't need separate colors (the custom labels are far more important).
Is there any way to tell if they intend on adding more supported digits for the markers later on down the line? That could be super handy because of the combining colors (circle/outline) function in "marker-size-color1-color2-symbol."
Thanks a lot for all the help and forwarding that on! In the meantime I'm just going to use a sequential numbering system and then just put it at the bottom what it is, since the overall map/concentration is what we're primarily looking at and get into the minutiae afterwards. So 1 = 1234, 2 = 3456, 3 = 7890 for what I'm doing with color codes/fill to easily identify map wise. Thanks again for all the help, I'm really liking beta v5 for static maps.
I figured I would just post on this older topic instead of making a new one, but have you had any word if there are any plans to add support for 4 digits (instead of 3) for custom markers?
Is there a way to add a custom marker to a specific location (in v5b)? The thought occurred to me that I could just write a program to make the png files for the icons for me (since I'm only adding the four character number), then host the files somewhere and just link to them every time I call the API to generate the map. That's in case the other two things I asked about above won't work, I just wanted to ask that as well while I was thinking about it. I see "Custom Markers" in the docs but none of them talk about referencing an externally-hosted image as the marker (which unfortunately makes sense).
I was hoping to upgrade our call from v4 to v5...for the most part it is pretty trivial and behaves in much the same way....however we do use custom icons from a URL and are used to declutter when necessary...It appears that v5 does not support this combination and for that reason it will indefinitely delay our adoption of v5, unless there is a workaround or undocumented usage that would allow this. Please advise.
Starting with one of the static map api samples, I got custom icons and declutter working with this url.
https://www.mapquestapi.com/staticmap/v5/map?key=KEY&locations=San+Franc...||San+Jose,CA|marker-lg-A20000-D51A1A||Sacramento,CA&size=@2x&defaultMarker=marker-sm-22407F-3B5998&size=600,400@2x&zoom=6&declutter=true
Thanks...I think what is different is that those are custom markers but within Mapquest...I am using custom markers based upon URLs pointing to our own external assets. That combination does not work for me but does in v4...