Hey, I have been looking at Polymer for a while now and got really excited about it after watching all the IO videos. I wanted to try my hand at making something real so I decided to make a leaflet-map component so that people can use OSM or Mapbox tiles and use Leaflet [1] features too. This is my first attempt at a polymer component and I faced some issues. I tried to follow the example of the <google-map> component [2] and built a similar interface for my component.
I am done with the first phase of development and happy that the <leaflet-map> component [3] works as I intended it to. While making it I couldn't understand how to maintain the flat-dependency for Bower [4] but found a solution in <seed-element>. Other issues that I don't know solutions of: * How to use stylesheets inside the component: https://github.com/prtksxna/leafleft-map-component/issues/2 * Should the the Leaflet library be loaded inside the main HTML or in the component: https://github.com/prtksxna/leafleft-map-component/issues/3 * How can I make a change to a property without triggering propertyChanged: https://github.com/prtksxna/leafleft-map-component/issues/6 * How are dependent components within a single repository suppose to document their dependencies: https://github.com/prtksxna/leafleft-map-component/issues/7 * Where can I find documentation on the `select` attribute of the <content> tag: https://github.com/prtksxna/leafleft-map-component/issues/8 * For certain elements I wasn't able to register onMutation correctly: https://github.com/prtksxna/leafleft-map-component/issues/9 I would be grateful if someone could answer these questions. Do you think its worth it to package it and put it on bower and web component registries? Should I add the rest of the Leaflet features and add elements for <leaflet-polygon>, <leaflet-path> etc? I was also thinking it would be interesting to add more container elements inside it that could act as layers, such as — one for heat maps and another one for clustered markers. I also need to figure out the best way to add tests [5] for this. Suggestions and feedback are welcome. —prtksxna [1] http://leafletjs.com [2] https://github.com/PolymerLabs/google-map [3] https://github.com/prtksxna/leafleft-map-component [4] https://github.com/prtksxna/leafleft-map-component/issues/1 [5] https://github.com/prtksxna/leafleft-map-component/issues/4 Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAMi5MH6Wpst9dDka01SAUomGZVTj6gLge-UEfW0w1YK2fZJpTQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
