leaflet-lumap
v1.0.0
Published
Leaflet Lumap(Luar Map)
Readme
��#� �L�e�a�f�l�e�t� �L�u�m�a�p�
�
�L�u�a�r� �M�a�p� �(�O�u�t�s�i�d�e� �t�h�e� �M�a�p�)�
�
�
�
�A�l�t�e�r�n�a�t�i�v�e� �l�e�a�f�l�e�t� �c�o�n�t�r�o�l�,� �e�a�s�y� �t�o� �c�u�s�t�o�m�i�z�e�
�
�!�[�L�e�a�f�l�e�t� �L�u�m�a�p� �-� �L�u�a�r� �M�a�p�]�(�l�u�m�a�p�-�t�h�u�m�b�n�a�i�l�.�j�p�g�)�
�
�[�L�i�n�k� �D�e�m�o�]�(�h�t�t�p�s�:�/�/�a�s�-�s�h�i�d�d�i�q�.�g�i�t�h�u�b�.�i�o�/�l�e�a�f�l�e�t�-�l�u�m�a�p�/�)�
�
�#�#� �H�o�w� �t�o� �u�s�a�g�e�
�
�-� �i�n�s�t�a�l�l� �l�e�a�f�l�e�t� �:� �h�t�t�p�s�:�/�/�l�e�a�f�l�e�t�j�s�.�c�o�m�/�
�
�-� �i�n�c�l�u�d�e� �t�h�e� �s�t�y�l�e�s�h�e�e�t� �
�
����h�t�m�l�
�
�<�l�i�n�k� �r�e�l�=�"�s�t�y�l�e�s�h�e�e�t�"� �h�r�e�f�=�"�c�s�s�/�l�e�a�f�l�e�t�.�l�u�m�a�p�.�c�s�s�"�/�>�
�
����
�
�-� �i�n�c�l�u�d�e� �t�h�e� �j�a�v�a�s�c�r�i�p�t� �
�
����h�t�m�l�
�
�<�s�c�r�i�p�t� �s�r�c�=�"�j�s�/�l�e�a�f�l�e�t�.�l�u�m�a�p�.�j�s�"�>�<�/�s�c�r�i�p�t�>�
�
����
�
�t�o� �u�s�e� �p�l�u�g�i�n�s� �p�l�e�a�s�e� �l�o�a�d� �u�s�i�n�g� �t�h�i�s� �m�e�t�h�o�d�
�
�-� �C�o�n�f�i�g� �v�a�r�i�a�b�e�l� �M�a�p�
�
����j�s�
�
�l�e�t� �m�a�p� �=� �L�.�m�a�p�(�'�m�a�p�'�)�.�s�e�t�V�i�e�w�(�[�3�9�.�7�3�,� �-�1�0�4�.�9�9�]�,� �1�3�)�;�
�
����
�
�-� �D�e�s�c�r�i�b�e� �s�e�l�e�c�t�o�r�/�e�l�e�m�e�n�t� �
�
����j�s�
�
�l�e�t� �e�l�L�u�m�a�p� �=� �d�o�c�u�m�e�n�t�.�q�u�e�r�y�S�e�l�e�c�t�o�r�(�'�#�l�u�m�a�p�'�)�;�
�
����
�
�
�
�-� �C�o�n�f�i�g� �a�s� �B�a�s�e� �M�a�p�s�
�
�
�
�d�e�s�c�r�i�b�e� �v�a�r�i�b�e�l� �b�a�s�e�m�a�p�
�
����j�s�
�
�l�e�t� �m�a�p�b�o�x�D� �=� � �L�.�t�i�l�e�L�a�y�e�r�(�'�h�t�t�p�s�:�/�/�a�p�i�.�m�a�p�b�o�x�.�c�o�m�/�s�t�y�l�e�s�/�v�1�/�m�a�p�b�o�x�/�d�a�r�k�-�v�9�/�t�i�l�e�s�/�{�z�}�/�{�x�}�/�{�y�}�?�a�c�c�e�s�s�_�t�o�k�e�n�=�p�k�.�e�y�J�1�I�j�o�i�b�W�F�w�Y�m�9�4�I�i�w�i�Y�S�I�6�I�m�N�p�e�j�Y�4�N�X�V�y�c�T�A�2�e�m�Y�y�c�X�B�n�d�H�R�q�c�m�Z�3�N�3�g�i�f�Q�.�r�J�c�F�I�G�2�1�4�A�r�i�I�S�L�b�B�6�B�5�a�w�'�,� �{�
�
� � � � � � � �a�t�t�r�i�b�u�t�i�o�n�:� �'�M�a�p� �d�a�t�a� �&�c�o�p�y�;� �<�a� �h�r�e�f�=�\�\�\�"�h�t�t�p�s�:�/�/�w�w�w�.�o�p�e�n�s�t�r�e�e�t�m�a�p�.�o�r�g�/�\�\�\�"�>�O�p�e�n�S�t�r�e�e�t�M�a�p�<�/�a�>� �c�o�n�t�r�i�b�u�t�o�r�s�,�<�a� �h�r�e�f�=�\�\�\�"�h�t�t�p�s�:�/�/�c�r�e�a�t�i�v�e�c�o�m�m�o�n�s�.�o�r�g�/�l�i�c�e�n�s�e�s�/�b�y�-�s�a�/�2�.�0�/�\�\�\�"�>�C�C�-�B�Y�-�S�A�<�/�a�>�,�I�m�a�g�e�r�y� ��� �<�a� �h�r�e�f�=�\�\�\�"�h�t�t�p�s�:�/�/�w�w�w�.�m�a�p�b�o�x�.�c�o�m�/�\�\�\�"�>�M�a�p�b�o�x�<�/�a�>�'�,�
�
� � � � � � �}�)�;�
�
�l�e�t� �m�a�p�b�o�x�L� �=� � �L�.�t�i�l�e�L�a�y�e�r�(�'�h�t�t�p�s�:�/�/�a�p�i�.�m�a�p�b�o�x�.�c�o�m�/�s�t�y�l�e�s�/�v�1�/�m�a�p�b�o�x�/�l�i�g�h�t�-�v�9�/�t�i�l�e�s�/�{�z�}�/�{�x�}�/�{�y�}�?�a�c�c�e�s�s�_�t�o�k�e�n�=�p�k�.�e�y�J�1�I�j�o�i�b�W�F�w�Y�m�9�4�I�i�w�i�Y�S�I�6�I�m�N�p�e�j�Y�4�N�X�V�y�c�T�A�2�e�m�Y�y�c�X�B�n�d�H�R�q�c�m�Z�3�N�3�g�i�f�Q�.�r�J�c�F�I�G�2�1�4�A�r�i�I�S�L�b�B�6�B�5�a�w�'�,� �{�
�
� � � � � � �a�t�t�r�i�b�u�t�i�o�n�:� �'�M�a�p� �d�a�t�a� �&�c�o�p�y�;� �<�a� �h�r�e�f�=�\�\�\�"�h�t�t�p�s�:�/�/�w�w�w�.�o�p�e�n�s�t�r�e�e�t�m�a�p�.�o�r�g�/�\�\�\�"�>�O�p�e�n�S�t�r�e�e�t�M�a�p�<�/�a�>� �c�o�n�t�r�i�b�u�t�o�r�s�,�<�a� �h�r�e�f�=�\�\�\�"�h�t�t�p�s�:�/�/�c�r�e�a�t�i�v�e�c�o�m�m�o�n�s�.�o�r�g�/�l�i�c�e�n�s�e�s�/�b�y�-�s�a�/�2�.�0�/�\�\�\�"�>�C�C�-�B�Y�-�S�A�<�/�a�>�,�I�m�a�g�e�r�y� ��� �<�a� �h�r�e�f�=�\�\�\�"�h�t�t�p�s�:�/�/�w�w�w�.�m�a�p�b�o�x�.�c�o�m�/�\�\�\�"�>�M�a�p�b�o�x�<�/�a�>�'�,�
�
� � � � � �}�)�;�
�
����
�
�
�
�g�r�o�u�p� �t�h�e� �b�a�s�e�m�a�p� �i�n� �b�a�s�e�M�a�p�s� �v�a�r�i�a�b�e�l�
�
����j�s�
�
�l�e�t� �b�a�s�e�M�a�p�s� �=� �{�
�
� �i�d�:�'�b�a�s�e�m�a�p�'�,�
�
� �t�i�t�l�e� �:� �'�B�a�s�e�M�a�p�s�'�,�
�
� �t�y�p�e� �:� �'�s�i�n�g�l�e�'�,�
�
� �c�h�i�l�d� �:� �[�
�
� � �{�
�
� � � �t�i�t�l�e� �:� �"�M�a�p�b�o�x� �D�a�r�k�"�,�
�
� � � �i�c�o�n�H�t�m�l� �:� ��<�i�m�g� �s�r�c�=�"�h�t�t�p�s�:�/�/�c�d�n�-�i�c�o�n�s�-�p�n�g�.�f�l�a�t�i�c�o�n�.�c�o�m�/�5�1�2�/�5�0�8�8�/�5�0�8�8�2�1�8�.�p�n�g�"�>��,�
�
� � � �l�a�y�e�r� �:� �m�a�p�b�o�x�D�
�
� � �}�,�
�
� � �{�
�
� � � �t�i�t�l�e� �:� �"�M�a�p�b�o�x� �L�i�g�h�t�"�,�
�
� � � �i�c�o�n�H�t�m�l� �:� ��<�i�m�g� �s�r�c�=�"�h�t�t�p�s�:�/�/�c�d�n�-�i�c�o�n�s�-�p�n�g�.�f�l�a�t�i�c�o�n�.�c�o�m�/�5�1�2�/�5�0�8�8�/�5�0�8�8�2�1�8�.�p�n�g�"�>��,�
�
� � � � � � �l�a�y�e�r� �:� �m�a�p�b�o�x�L�
�
� � �}�
�
� �]�
�
�}�
�
����
�
�
�
�-� �C�o�n�f�i�g� �a�s� �O�v�e�r�l�a�y� �M�a�p�s�
�
�
�
�d�e�s�c�r�i�b�e� �v�a�r�i�b�e�l� �l�a�y�e�r�s� �o�r� �m�a�k�e� �a�s� �g�r�o�u�p�
�
�
�
����j�s�
�
�l�e�t� �l�i�t�t�l�e�t�o�n� �=� �L�.�m�a�r�k�e�r�(�[�3�9�.�6�1�,� �-�1�0�5�.�0�2�]�)�.�b�i�n�d�P�o�p�u�p�(�'�T�h�i�s� �i�s� �L�i�t�t�l�e�t�o�n�,� �C�O�.�'�)�;�
�
�l�e�t� �d�e�n�v�e�r� � � � �=� �L�.�m�a�r�k�e�r�(�[�3�9�.�7�4�,� �-�1�0�4�.�9�9�]�)�.�b�i�n�d�P�o�p�u�p�(�'�T�h�i�s� �i�s� �D�e�n�v�e�r�,� �C�O�.�'�)�;�
�
�l�e�t� �a�u�r�o�r�a� � � � �=� �L�.�m�a�r�k�e�r�(�[�3�9�.�7�3�,� �-�1�0�4�.�8�]�)�.�b�i�n�d�P�o�p�u�p�(�'�T�h�i�s� �i�s� �A�u�r�o�r�a�,� �C�O�.�'�)�;�
�
�l�e�t� �g�o�l�d�e�n� � � � �=� �L�.�m�a�r�k�e�r�(�[�3�9�.�7�7�,� �-�1�0�5�.�2�3�]�)�.�b�i�n�d�P�o�p�u�p�(�'�T�h�i�s� �i�s� �G�o�l�d�e�n�,� �C�O�.�'�)�;�
�
�l�e�t� �c�i�t�i�e�s� �=� �L�.�l�a�y�e�r�G�r�o�u�p�(�[�l�i�t�t�l�e�t�o�n�,� �d�e�n�v�e�r�,� �a�u�r�o�r�a�,� �g�o�l�d�e�n�]�)�;�
�
����
�
�g�r�o�u�p� �t�h�e� �l�a�y�e�r�s� �i�n� �o�v�e�r�l�a�y�M�a�p�s�
�
����j�s�
�
�v�a�r� �o�v�e�r�l�a�y�M�a�p�s� �=� �{�
�
� � �i�d�:�'�l�a�y�e�r�s�'�,�
�
� � �t�i�t�l�e� �:� �'�L�a�y�e�r�s�'�,�
�
� � �c�h�i�l�d� �:� �[�
�
� � � � �{�
�
� � � � � � � � �t�i�t�l�e�:� �"�C�i�t�i�e�s�"�,�
�
� � � � � � � � �i�c�o�n�:�'�h�o�u�s�e�'�,�
�
� � � � � � � � �s�t�y�l�e�:�'�b�a�c�k�g�r�o�u�n�d�:�#�9�c�8�9�b�8�;�c�o�l�o�r�:�#�f�f�f�'�,�
�
� � � � � � � � �l�a�y�e�r�:�c�i�t�i�e�s�
�
� � � � �}�
�
� � � �]�
�
� �}�;�
�
����
�
�-� �C�r�e�a�t�e� �t�h�e� �L�u�m�a�p� �i�n�s�t�a�n�c�e�
�
����j�s�
�
�l�e�t� �l�u�m�a�p� �=� �n�e�w� �L�u�m�a�p�(�m�a�p�,�e�l�L�u�m�a�p�,�[�b�a�s�e�M�a�p�s�,�o�v�e�r�l�a�y�M�a�p�s�]�,�c�o�n�f�i�g�s�=�{�}�)�;�
�
����
�
�
�
�#�#�#� �C�o�n�f�i�g�u�r�a�t�i�o�n�
�
�t�h�i�s� �i�s� �t�h�e� �d�e�f�a�u�l�t� �c�o�n�f�i�g�u�r�a�t�i�o�n� �t�h�e� �l�u�m�a�p�,� �i�f� �y�o�u� �w�a�n�t� �t�o� �c�h�a�n�g�e� �p�l�e�a�s�e� �o�v�e�r�w�r�i�t�e� �i�t� �w�i�t�h� �t�h�e� �d�e�s�i�r�e�d� �v�a�l�u�e�
�
�
�
����j�s�
�
�{�
�
� �b�o�o�t�s�t�r�a�p�I�c�o�n� �:� �f�a�l�s�e� �/�/�t�r�u�e� �i�f� �y�o�u� �h�a�s� �b�e�e�n� �l�o�a�d�e�d� �b�o�o�t�s�t�r�a�p� �i�c�o�n�,�
�
� �r�e�s�p�o�n�s�i�v�e�:� �{�
�
� � � � � �t�r�i�g�g�e�r�B�u�t�t�o�n� �:� �'�b�o�t�t�o�m�-�r�i�g�h�t�'� �/�/�b�o�t�t�o�m�-�r�i�g�h�t� �|�|� �b�o�t�t�o�m�-�l�e�f�t� �|�|� �t�o�p�-�r�i�g�h�t� �|�|� �t�o�p�-�l�e�f�t�
�
� �}�
�
�}�
�
����
