benhuson / WP-Geo

WP Geo is a location plugin for WordPress that uses Google Maps. Current stable version can be downloaded from WordPress Extend.
https://wordpress.org/plugins/wp-geo/
25 stars 18 forks source link

New function for templates #58

Open stefanodotta opened 10 years ago

stefanodotta commented 10 years ago

Hello Ben,

This question is related to #57 ([wpgeo] shortcode).

I was actually wondering if you would consider a new function to be used in templates (instead of a shortcode), more or less the same as "wpgeo_post_map()" that would allow the output of a map with a kml file path passed as parameter.

Alternatively, I suggest the addition of a field to the existing "WP Geo Location" panel that allows to provide the url of a kml file. I guess we also need an option (a flag) to define when or how the kml file should be displayed (both with a shorcode or a function?).

I know your plugin was originally intended to enable to attribute a location and map to a post or page and not to display klm files but at the same time, I think it would be a nice addition as it would allow to add extra markers, polygons or layouts to the maps.

What do you think?

Best regards, Stefano Dotta http://www.twoswisshikers.net/