reggie3 / react-native-webview-leaflet

A Webview based Leaflet Component for React Native
219 stars 126 forks source link

VectorLayers supported? #51

Closed daniel-bogdoll closed 4 years ago

daniel-bogdoll commented 5 years ago

Hi,

quick question: Are vector layers (especially multiple polyLines, polygons etc: https://leafletjs.com/reference-1.5.0.html#polyline) supported or can you only display HTML-based markers? If not supported yet, is it planned?

Thanks and best, Daniel

reggie3 commented 5 years ago

Not currently supported, though I may get around to it at some point if I find the time.

gutoglup commented 5 years ago

Hey, I submitted a pull request with the feature of VectorLayers inside the map. If @reggie3 can evaluate the code. :D

zahid49 commented 5 years ago

Hi @gutoglup @reggie3, How can I draw a circle(Geofence Area) with the latest(master) branch, actually I'm not able to make polygons in master branch? In branch "polygons-no-expo" I was able to draw a polygon.

Thanks!

gutoglup commented 5 years ago

Hey :D @zahid49 So, I only implements to draw vector like polygons, I don't implement to draw circles or use GeoJSON :/ But it's a great suggestion to implements.

zahid49 commented 5 years ago

Oky, can you please help me to update. Just tell me the process .

.what are the things to setup. .How can i update dist dir. Package is using code inside dist/index.html ? . I need to update inside web dir. ?

I shall be very thankful to you. Thanks.

On Wed, 18 Sep 2019, 4:25 pm Augusto Reis, notifications@github.com wrote:

Hey :D @zahid49 https://github.com/zahid49 So, I only implements to draw vector like polygons, I don't implement to draw circles or use GeoJSON :/ But it's a great suggestion to implements.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/reggie3/react-native-webview-leaflet/issues/51?email_source=notifications&email_token=AHRZWDFSQSO7NGKXYQPSYMTQKIF2TA5CNFSM4HOTWLD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD67XO3Q#issuecomment-532641646, or mute the thread https://github.com/notifications/unsubscribe-auth/AHRZWDB6PJKWG76DNI3OK5LQKIF2TANCNFSM4HOTWLDQ .

zahid49 commented 5 years ago

@gutoglup , @reggie3 Can you please add a "circle" feature and please uncomment that "center button" code.

=> Add render circle feature function.... e.g. <Circle center={layer.coords} fillColor={layer.color || 'blue'} radius={200}/>

hussainahmad commented 5 years ago

@reggie3 is there any future release for different VectorLayers support like Polygon, Polyline

reggie3 commented 5 years ago

I'm currently working on version 5 of the app which will support all the available geometry objects. It also moves the package to react-native-community-webview. I might be able to publish something this weekend.

reggie3 commented 4 years ago

Vector layers support added in version 5