wit_vivek
wit_vivek

Reputation: 61

dynamic google map using php

I want to archive this functionality of a dynamic map such when we select place then it will display in map

If we zoom the map then the list will also refresh such that it display only those places which are in current map

If we click on next 10 places it will load new map accordingly

By using what and how it is going to be possible for me to do that in PHP?

Upvotes: 1

Views: 1281

Answers (2)

Sim
Sim

Reputation: 2725

Basically you have to use Google Maps v3 JavaScript API. It's scriptable (as in dynamic) and can do everything you have described (together with PHP for data).

  • Your places need to have geographical coordinates (latitude/longitude) stored in your db.
  • Listen for map bounds_changed event and display a marker for every place that fits within map bounds (AJAX query, whatever).
  • Update your list of places checking map.getBounds() bounds.

Upvotes: 1

Alaa Badran
Alaa Badran

Reputation: 1858

Try to read about

They are all helpfull for dynamic and static maps.

You may also see this tutorial about Google Maps.

Upvotes: 0

Related Questions