leafletapp | Leaflet example wrapped in OpenCPU | User Interface library
kandi X-RAY | leafletapp Summary
kandi X-RAY | leafletapp Summary
Leaflet example wrapped in OpenCPU
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of leafletapp
leafletapp Key Features
leafletapp Examples and Code Snippets
Community Discussions
Trending Discussions on leafletapp
QUESTION
I am converting a standard angular project to an Angular Universal project so I have to get rid of the "$window". The project did not use any but some of the modules that were used, like leaflet, are using it, so I switched to ngx-leaflet.
The component only accesses @types\leaflet objects to generate the configuration and the map generation is left to the html with the ngx-leaflet directive : leaflet. The html is as follows :
...ANSWER
Answered 2020-Oct-11 at 14:51Well while typing the question I found the answer.... But I posted the question anyway in case someone faces this :
The tiles are placed on the "titleLayer" that in fact are the "tileLayer". That spelling mistake of mine induced an error thinking it was just the title. So as my component did not duplicate the tile layer but used the same one for the 2 maps this was the issue.
The solution is to create 2 tile layers objects, even if they have identical content and asign one of each to the different maps...
correct component code as follows :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install leafletapp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page