Jgc
Posts: 0
Joined: Wed Mar 07, 2012 8:58 pm

link KMZ to Map object?

Is it possible to "call" a KMZ map using the Map object? When a user uses the Map object, I want the Map object to be updated using a KMZ file. Is this possible? If so, can you please give me directions on how to do it? Thanks in advance!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

link KMZ to Map object?

Are referring to this http://kmzmaps.com?

Jgc
Posts: 0
Joined: Wed Mar 07, 2012 8:58 pm

link KMZ to Map object?

Not really.....

I am trying to set things up to where I can edit a map easily by just updating a .CSV file, as opposed to writing more and more code for each new entry into the the map..... This way, when I have new data, i can easily enter it into and update via a .CSV, as opposed to writing more JavaScript, or other code. I am wondering if their is a way to use a .CSV with the Tiggzi map widget?

Is their a way? Thanks for any help.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

link KMZ to Map object?

You can put all data into a JavaScript file - and then update it. Or use services Echo feature - to put test data and the invoke the service. There is no option to upload a .CSV file directly.

Jgc
Posts: 0
Joined: Wed Mar 07, 2012 8:58 pm

link KMZ to Map object?

Okay I see. Thanks for the help. 2 other questions to this I need to know is - The code (pertaining to the CSV data) goes into the map widget, right? And what kind of event do i use?

Thanks again!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

link KMZ to Map object?

Well, the CVS data could contain map points, for example. You would need to read the file and create points with Google Map API. As for event, it could really be any event that makes sense for your app.

Jgc
Posts: 0
Joined: Wed Mar 07, 2012 8:58 pm

link KMZ to Map object?

hrm......well not the answer I was hoping for but ok, thanks...

Jgc
Posts: 0
Joined: Wed Mar 07, 2012 8:58 pm

link KMZ to Map object?

Ok, the CSV file is on my web server. I was able to get this code snippet from a friend. -

$.ajax("http://my.domain.com/mycsvfile.csv", {
success: function(data) {
var jsonobject = csvjson.csv2json(data);
// Now use jsonobject to do some charting...
},
error: function() {
// Show some error message, couldn't get the CSV file
}
});

My question here, is (assuming i put this inside the map widjet), on the first line, that is the direct link to my csv file, right? Basically i am trying to simply reference the CSV file, that way it is the ONLY entity I have to update. Please help, I appreciate it.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

link KMZ to Map object?

Yes, the above should work.. I'm not sure I understand this part:

[quote:]
that way it is the ONLY entity I have to update
[/quote]

You can even try loading the CVS file (as long as it returns JSON or XML) via a REST service, without needing to write the ajax call yourself.

When you write JavaScript, if it works outside of Tiggzi Mobile App Builder, then it will work when using inside Tiggzi Mobile App Builder.

Return to “Issues”