pavel-corsaghin / react-native-leaflet

A LeafletView component using WebView and Leaflet map for React Native applications
MIT License
114 stars 46 forks source link

How to generate an android/index.html #13

Open Cinchel opened 2 years ago

Cinchel commented 2 years ago

i used types.ts/interface try to extend interface geoJson can not show in expo

types.ts export interface GeoJson{ data: L.GeoJSON; pointToLayer?: (point: GeoJSONdata, latlng: LatLng) => Layer; style?: (feature: GeoJSONdata) => Object; onEachFeature?: (feature: GeoJSONdata, layer: Layer) => void; filter?: (feature: GeoJSONdata) => boolean; coordsToLatLng?: (coords: GeoJSONdata) => LatLng; markersInheritOptions?: boolean; }

Cinchel commented 2 years ago

@miallo @jpstotz @pavel-corsaghin

miallo commented 2 years ago

That is not trivial. The sources for it are in the repository from which this was created, but they are in an "interesting" shape. Also the documentation is a bit bad and I think we had to fix some build problems as well (let's say so far we could only build the html with lots of duct tape...) I can ask my coworker how much he has already and if it is in a state to be shared

Cinchel commented 2 years ago

That is not trivial. The sources for it are in the repository from which this was created, but they are in an "interesting" shape. Also the documentation is a bit bad and I think we had to fix some build problems as well (let's say so far we could only build the html with lots of duct tape...) I can ask my coworker how much he has already and if it is in a state to be shared

can you add an interface about geojson first? If it is convenient, please share some source code with me,thank u very much!

Cinchel commented 2 years ago

@miallo @jpstotz @pavel-corsaghin