0

I want to create a custom google map like this and want to draw and store diffrent shapes like polyline, polygone,line, point, etc with custom data(info window,id etc) and style(color, strockcolor etc) to database. but i dont know how .is there any one to help me? thanks

1 Answers1

0

By checking the Google Maps JavaScript API, there is an object called overlays that can add objects to the map to designate points, lines, areas, or collections of objects. Overlays are tied to latitude/longitude coordinates, so they move when you drag or zoom the map.

The Google Maps JavaScript API has several types of overlays that you can add programmatically:

  • Single locations on the map are displayed using markers.

  • An info window is a special kind of overlay for displaying content (usually text or images) within a popup balloon at a given location on a map

  • Lines on the map are displayed using polylines representing an ordered sequence of locations and Areas of arbitrary shape on the map are displayed using polygons. See Shape for more information.

  • You can also define circles and rectangles on the map

  • If you want to place an image on a map, you can use a ground overlay

For storing the data on a database, I think this documentation and SO question can help you for doing that.

Community
  • 1
  • 1
KENdi
  • 7,576
  • 2
  • 16
  • 31