1

I need to replace MapQuest's map with my tile server URL which looks like http://tile.openstreetmap.org/{z}/{x}/{y}.png by keeping the controls as it is Eg: Marker & Polygon. I followed this link and couldn't find a source to my problem.

The below image is my present mapview which is generated by MapQuest

current MapQuest map How can I do that?

Himagaran
  • 312
  • 2
  • 14

1 Answers1

0

The MapQuest mapping tools are built to display MapQuest maps. There is no method to display other maps. You may want to try osmdroid.

MQBrian
  • 452
  • 1
  • 3
  • 7
  • Is it possible to include my custom tile server through osmdroid seperately and add the mapquest's map controls on top of it? – Himagaran Sep 08 '17 at 15:22
  • MapQuest's controls are built for our sdk. But you could recreate the basic functionality on the osmdroid map. – MQBrian Sep 08 '17 at 17:32
  • 1
    I tried by following this link https://github.com/osmdroid/osmdroid and managed to put my tileserver, polyline & marker but couldn't find any help with integrating polygon, marker snippet & click listeners. Even their source code extends with several classes (looks complicated) and i was unable to fetch the code for each controls clearly. – Himagaran Sep 09 '17 at 03:36
  • 1
    I haven't used osmdroid, but this may help with the polygon: http://osmdroid.github.io/osmdroid/javadocAll/org/osmdroid/views/overlay/Polygon.html – MQBrian Sep 11 '17 at 13:00