bradcornford / Googlmapper

An easy way to integrate Google Maps with Laravel
MIT License
464 stars 142 forks source link

Multiple Markers #271

Closed jamalnasir closed 4 years ago

jamalnasir commented 6 years ago

How to display multiple markers with different LAT and LON with information window each - on a single map?

gidaban commented 6 years ago

https://github.com/bradcornford/Googlmapper/issues/250

Same problem, works perfect :)

umair321 commented 6 years ago

@gidaban link not found

bradcornford commented 6 years ago

Hi there,

This is as simple as the following:

Mapper::map(40, -100, ['zoom' => 4, 'marker' => false, 'type' => MapperBase::TYPE_ROADMAP]);
Mapper::informationWindow(40, -99, 'hello']);
Mapper::informationWindow(41, -98, 'hello']);
Mapper::informationWindow(42, -97, 'hello']);
bradcornford commented 6 years ago

Here is the link that @gidaban supplied https://github.com/bradcornford/Googlmapper/issues/250