gregallensworth / L.TileLayer.Cordova

Leaflet TileLayer subclass which caches to local filesystem, for Cordova/Phonegap
MIT License
87 stars 25 forks source link

Error import in INtel XDK #22

Closed danicarla closed 7 years ago

danicarla commented 7 years ago

Hi guys... I use IntelXDK but when I try to import I get the following error: "Cannot find plugin.xml"

Does anyone know how to solve it?

erro1

erro2

gregallensworth commented 7 years ago

Looks like XDK is looking for a plugin.xml file in the repository, containing metadata.

https://software.intel.com/en-us/xdk/docs/add-manage-project-plugins

https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html

I'll read up and see what I can come up with.

gregallensworth commented 7 years ago

Hey there. Reading over this, I think that a plugin.xml would not be relevant here, and that you're trying to use L.TileLayer.Cordova as a Cordova plugin. It is not a Cordova plugin, but a JavaScript library for Leaflet.

You would include it using a SCRIPT tag same as you do with Leaflet. Same as with Leaflet, put the leaflet-tilelayer-cordova.js file in your www flder and add something like this in the HTML file:

<script src="js/leaflet-tilelayer-cordova.js"></script>

Then try JS code similar to that in the README file: https://github.com/gregallensworth/L.TileLayer.Cordova

danicarla commented 7 years ago

You were right .. I was thinking it was a plugin! Thanks for your help!