New to mapquest - how to stop the search adding a 'pin'?

2 posts / 0 new
Last post
Jburnside615
New to mapquest - how to stop the search adding a 'pin'?

I am new to mapquest - I am attempting to use the search (L.mapquest.geocodingControl().addTo(map); ) to simply reposition the map to the place my user wants.

So I set it's default location when it loads the map, but my users eventually may be in different countries - I simply want them to be able to use the search, and it will load to that location. 

My problem is - when i search an address, it loads it fine as expected - but it puts a pin on that searched location. I do not want this pin to be placed, as pins in my database are what my user wants to view (so a pin on that searched location may be confusing). 

Is there a way to stop that pin being placed? 

 

Thanks in advance.

 


MQBrianCoakley
Set the placeMarker option to
Set the placeMarker option to false.   L.mapquest.geocodingControl({placeMarker: false}).addTo(map);