fanningert / kirbycms-extension-gmaps

This is a Kirbytag to integrate Google Maps API in your website
GNU General Public License v3.0
10 stars 2 forks source link

Map with directions #10

Closed rzschoch closed 8 years ago

rzschoch commented 8 years ago

A nice addition would be a map output with a directions link inside: https://developers.google.com/maps/documentation/embed/start

Do you see a chance to implement map embeds that highlight a place or address with all the shown map features inside?

fanningert commented 8 years ago

It should be working with the place feature (highlight some places/Cities/Countries), but my current version has a bug in the place feature.

fanningert commented 8 years ago

Bad news . Currently is the ploygon feature for places not available via Google Maps Javascript API.

This data is not available from the Google Maps APIs. An alternative solution would be to use KML data, which can probably be found online, and the URL can be retrieved. This can be imported into the map using the URL using google.maps.KmlLayer.

rzschoch commented 8 years ago

That’s sad. Does this also include specific addresses without a polygon highlighting a place? Like when you test this form with a more specific address (city + street): https://developers.google.com/maps/documentation/embed/start

fanningert commented 8 years ago

When I am searching for "Landstraße 3, 2000 Stockerau, Österreich", I get a map mith a marker. This is possible in the current version.

Example:

(googlemaps zoom: 10)
  (marker place: Landstraße 3, 2000 Stockerau, Österreich)
(/googlemaps)

This is also working with lat and lng.

(googlemaps zoom: 10)
  (marker lat: 35.7152128 lng: 139.7981552)
(/googlemaps)
fanningert commented 8 years ago

To add extra controls, like "Direction link" or other functions is possible. But not default.