Skip to content

Commit

Permalink
dropped nhnb-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
nhnb committed Jul 9, 2014
1 parent 21cdd78 commit b6f82f5
Show file tree
Hide file tree
Showing 7 changed files with 171 additions and 166 deletions.
2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>nhnb-leaflet-map</name>
<name>leaflet-map</name>
<comment></comment>
<projects>
</projects>
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
r0.1.0
======
* dropped nhnb- prefix

r0.0.2
======
* added support for nhnb-leaflet-geolocation
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
nhnb-leaflet-map
================
leaflet-map
===========

[Leaflet](http://leafletjs.com/reference.html) is a modern open-source JavaScript library for mobile-friendly interactive maps.

nhnb-leaflet-map makes Leaflet available as web-component: &lt;nhnb-leaflet-map&gt; &lt;/nhnb-leaflet-map&gt;
Please have a look at the [demo page](https://nhnb.github.io/nhnb-leaflet-map/nhnb-leaflet-map/demo.html) or the [api documentation](https://nhnb.github.io/nhnb-leaflet-map/doc.html)
leaflet-map makes Leaflet available as web-component: &lt;leaflet-map&gt; &lt;/leaflet-map&gt;
Please have a look at the [demo page](https://nhnb.github.io/leaflet-map/leaflet-map/demo.html) or the [api documentation](https://nhnb.github.io/leaflet-map/doc.html)


Web-components are an emerging standard which is based on Custom Elements, Shadow DOM, HTML Imports and Web Animations.
Expand All @@ -15,26 +15,26 @@ do not yet support web-components natively, yet.
Status
======

nhnb-leaflet-map is a prove of concept. It already supports the most important features of leaflet.
leaflet-map is a prove of concept. It already supports the most important features of leaflet.

At this time the following elements are defined:

* nhnb-leaflet-geolocation (part of L.map) (since 0.0.2)
* nhnb-leaflet-map (L.map)
* nhnb-leaflet-marker (L.marker)
* nhnb-leaflet-icon (L.icon)
* nhnb-leaflet-divicon (L.divicon) (since 0.0.1)
* nhnb-leaflet-tilelayer (L.tileLayer)
* nhnb-leaflet-tilelayer-wms (L.tileLayer.wms) (since 0.0.2)
* leaflet-geolocation (part of L.map) (since 0.0.2)
* leaflet-map (L.map)
* leaflet-marker (L.marker)
* leaflet-icon (L.icon)
* leaflet-divicon (L.divicon) (since 0.0.1)
* leaflet-tilelayer (L.tileLayer)
* leaflet-tilelayer-wms (L.tileLayer.wms) (since 0.0.2)

Most of the options documented in the [Leaflet reference](http://leafletjs.com/reference.html) for those objects are exported as html attributes.
For example use &lt;nhnb-leaflet-map latitude="51.505" longitude="-0.09" zoom="13"&gt; &lt;/nhnb-leaflet-map&gt; to define the view and zoom level.
For example use &lt;leaflet-map latitude="51.505" longitude="-0.09" zoom="13"&gt; &lt;/leaflet-map&gt; to define the view and zoom level.

Dependencies
============

nhnb-leaflet-map depends on Polymer in ../platform and ../polymer and it expects an installation of leaflet in ../leaflet-bower.
All dependencies are bundled in the [download](https://github.com/nhnb/nhnb-leaflet-map/releases/download/r0.0.2/nhnb-leaflet-map__with_dependencies-0.0.2.zip).
leaflet-map depends on Polymer in ../platform and ../polymer and it expects an installation of leaflet in ../leaflet-bower.
All dependencies are bundled in the [download](https://github.com/nhnb/leaflet-map/releases/download/r0.0.2/leaflet-map__with_dependencies-0.0.2.zip).

Please note that the pages have to be accessed via a webserver. file://-urls are not supported.

Expand All @@ -44,7 +44,7 @@ Notes for implementing child elements

Child elements like markers or layers will be initialized by the surrounding map by setting a "map" javascript property.
Therefore the child element should define a mapChanged method and use that as initializer.
Don't forget to define a detached method to support removal of elements. The nhnb-leaflet-marker element is a good template.
Don't forget to define a detached method to support removal of elements. The leaflet-marker element is a good template.

License
=======
Expand Down
9 changes: 5 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "nhnb-leaflet-map",
"version": "0.0.0",
"name": "leaflet-map",
"version": "0.1.0",
"authors": [
"Hendrik Brummermann <nhnb@users.sourceforge.net>"
],
"description": "Leaflet map as web-component based on polymer",
"main": "nhnb-leaflet-map.html",
"main": "leaflet-map.html",
"keywords": [
"polymer",
"web-components"
"web-components",
"leaflet"
],
"license": "BSD 2-Clause",
"private": true,
Expand Down
Loading

0 comments on commit b6f82f5

Please sign in to comment.