Esri / offline-editor-js

ArcGIS JavaScript library for handling offline editing and tiling.
http://esri.github.io/offline-editor-js/demo/
Apache License 2.0
159 stars 142 forks source link

Offline phonegap application with tpk fie #415

Closed kountouretis closed 8 years ago

kountouretis commented 8 years ago

I strat to develop an android application using phonegap. Also i have already done a map with arcgis with some points.Now i am in the part that i must use the tpk file which is the map and the database which is in csv format ( In database there are some points and names of places that i want to show in the map ) . I don't understand how to use these two files(tpk file and csv) together offline to build mt app.

andygup commented 8 years ago

Hi Antonis, I think I understand what you are asking.

My suggestion would be to create an ArcGIS Online FeatureLayer using the csv data. Here's a document that describes the steps. You can create a free ArcGIS Online developer account to test this out. Once your csv data is in a FeatureLayer that you will be able to use it with a tpk file with this library.

The offline-editor-js library does not support using a CSVLayer. It only supports FeatureLayer. I'll make a note to clarify this in the documentation.

andygup commented 8 years ago

Antonis, how's it going with getting the CSV figured out?

kountouretis commented 8 years ago

Hi AndyThanks for you reply. I saw the https://github.com/andygup/offline-editor-js and i saw also the tpk-layer.html . I will find way to convert the csv file to json or other way and take the data i want. Especially my problem is if possible to plot (points,popups etc.) on tpk file with javascript. This is html/javascript code that i plot points. i want to do the same with tpk file

<!DOCTYPE html>

Date: Mon, 19 Oct 2015 08:07:42 -0700 From: notifications@github.com To: offline-editor-js@noreply.github.com CC: a.kountouretis@hotmail.com Subject: Re: [offline-editor-js] Offline phonegap application with tpk fie (#415)

Hi Antonis, I think I understand what you are asking.

My suggestion would be to create an ArcGIS Online FeatureLayer using the csv data. Here's a document that describes the steps. You can create a free ArcGIS Online developer account to test this out. Once your csv data is in a FeatureLayer that you will be able to use it with a tpk file with this library.

The offline-editor-js library does not support using a CSVLayer. It only supports FeatureLayer. I'll make a note to clarify this in the documentation.

— Reply to this email directly or view it on GitHub.

andygup commented 8 years ago

@kountouretis for information on plotting points please read the ArcGIS API for JavaScript documentation under Guide tab > Graphics and Features Layers. There is also a documentation section right below that in the left hand table of contents called Popups and InfoWindows.

image

andygup commented 8 years ago

Antonis, I'll close this for now. Feel free to either reopen this for a related issue or open a new issue if you get stuck.