October 27, 2012 at 8:16 pm #10683darrylschmidtParticipant
is it possible to specify a kml file for use with the mappress shortcode?
I’m having a person create a map with a point (poi) and would like to via the display shortcode also include my pre-made kml file.October 28, 2012 at 6:46 am #10686
You can’t add KML in the shortcode, but you can add KML files to the map. You’ll need one of the beta versions for KML support:
Then create a map and type the KML http: address where you would normally type the street address for a new POI. That will add the KML overlay to the map.
You can also combine multiple KMLs on the map, along with shapes and regular POIs.October 28, 2012 at 8:27 am #10688darrylschmidtParticipant
Hmm, it’s just not feasable to have the client add the kml file to each mapOctober 28, 2012 at 1:40 pm #10689
You can’t do it with the shortcode, but you can use PHP. See the documentation for some examples; in the Mappress_Poi object you can set the property kml:
$poi->kml = “http://www.mykml.com”November 1, 2012 at 4:58 pm #10723
Hi, could you elaborate more on this last option…by editing the PHP, will it make it more user friendly to ad the kml?November 1, 2012 at 5:21 pm #10724
You can just type a KML address (or addresses) into the map editor when you’re creating a map, which is pretty easy.
I think the question was about whether you could also add KML to the map by adding it into the map shortcode. That isn’t supported, but as an alternative you can create a map using PHP in the blog template. See the do_shortcode() examples in the docs.November 1, 2012 at 5:32 pm #10726
So adding it to the map editor is fine, and I apologize this is all proving tougher for me than it should!
I am trying to just add the url http:… to the POI: section instead of an address. Its telling me it is Invalid when I hit ok. If I enter the full code from the KML export, it tells me there is no matching address. This is with the newer beta. What am I doing wrong here?
Thank you!November 1, 2012 at 5:54 pm #10727
What is the URL of your KML file? Please post it here or send it to me with the contact form.
Please also try this KML, which is a working sample file, and let me know how it works for you:November 1, 2012 at 5:59 pm #10728
Here is what I am using. Its much longer but its the only url in the exported KML.
Yours works perfectly.November 1, 2012 at 6:16 pm #10729
I found this and using this workaround it works. Guess the kml exported from Google Maps is incorrect, which I gathered anyway since the previous url tried to download as .jsNovember 1, 2012 at 6:29 pm #10730
Thank you so much for the quick response..especially given the time! It was a life saver, really.November 1, 2012 at 6:36 pm #10731
I’m glad you got it working, and for the link to the workaround – hopefully it’ll help someone else with a similar issue.November 2, 2012 at 1:16 am #10736
So I do have one more related question. Since the KML url brings in the title, and I enter a title in the map (which is necessary b/c I will have about 100 of them), it is showing both on the page in the info bubble.
Is there a way to hide the title I enter from displaying on the website? Maybe something in the css?November 2, 2012 at 1:37 am #10737
Sorry, my fault…you can disregard that last one!November 4, 2012 at 3:03 pm #10747
Hi, So all of my maps with the KML are working perfectly (thank you!) but now I need to make a page with a mashup. I need to show all published posts here, so it seems like the [mashup] shortcode should work. It brings in a map, but no formatting or locations show up.
Here’s my url. Any ideas? Also, is there a way to show these in Google Earth?
- You must be logged in to reply to this topic.