Skip to content

Conversation

tombatossals
Copy link
Owner

Hi guys, I finally finished this work. It has been intense.

This is a rework of all the examples added in the "examples" directory, with two main changes.

  1. There is a "viewer" of examples, were we can explore and navigate between all the examples, categorized.
  2. All the examples can be viewed as a standalone version.

This is accomplished by following a standard creating the HTML examples, and by a NodeJS script.

When adding a new example , or modifying an existing one, you can add it to the viewer executing:

grunt examples

There are a few examples wich doesn't work now, and that's because there has been a lot of changes lastly on the library, I will fix them (or fix the library bug if present) in the meantime.

The protractor tests needs to be modified too, but that will be another PR.

You can see the work explained here in this "example-browser":

http://tombatossals.github.io/angular-leaflet-directive/examples/0000-viewer.html

tombatossals and others added 30 commits March 31, 2015 19:53
- markersDirectiveSpecs switched to coffee
breaking up leafletEvents for developers sake
- safeApply boilerplate wrapped with leafletEventsHelper.fire
Events now pass layerName if it exists and it passes the model.
markersControl setup to be fetched from leafletData.directivesControls

markers control and markersWatchOptions working, tests broken

markers control and markersWatchOptions working, tests broken

save off on markersWatchOptions

specs fixed

example
- Making the directiveControls logic more modular along with watchOptions
directives.
- on creation copy the model so changes to lObjects do not affect the model/trigger scope digest
- model differences working now where copy in _addMarker is very important
attempt to fix template compile on label and popup/label w cluster
nmccready and others added 20 commits April 16, 2015 16:41
- nested geojson specs
- markersDirectiveSpecs switched to coffee
breaking up leafletEvents for developers sake
- safeApply boilerplate wrapped with leafletEventsHelper.fire
Events now pass layerName if it exists and it passes the model.
markersControl setup to be fetched from leafletData.directivesControls

markers control and markersWatchOptions working, tests broken

markers control and markersWatchOptions working, tests broken

save off on markersWatchOptions

specs fixed

example
@nmccready
Copy link
Contributor

Is it possible to rebase? This is massive. I trust you and it is mainly examples anyways. But the github reviewer is throwing up and slow; so this is hard to digest.

@tombatossals
Copy link
Owner Author

Mmm... I'm recreating this PR again, it has messed up a little with all the commits these days

@nmccready
Copy link
Contributor

If rebase is too difficult just merge the latest changes in. I need to work on a possible bug for leafletData

@nmccready
Copy link
Contributor

k

@nmccready
Copy link
Contributor

btw we should proabably add grunt d to travis. I just pulled latest and it does not build.

@nmccready
Copy link
Contributor

I'll push up build fix immediately.

@nmccready
Copy link
Contributor

done

@tombatossals tombatossals deleted the new-examples branch April 17, 2015 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants