gmaps icon indicating copy to clipboard operation
gmaps copied to clipboard

Move gmaps.js to NPM and modularize it.

Open hpneo opened this issue 9 years ago • 18 comments

I've been playing with @ampersandjs and I must say is amazing what they accomplished in terms of simplicity, code reusability and a better approach to work with modules. I'm thinking on follow that philosophy and make gmaps.js a modular library for working with Google Maps.

That way, you can use only what you need (markers but no routes, polygons but no layers), and even make your own builds with what you need, or extend gmap.js in an easier way.

To do this, I need to use Browserify to create the bundles for using the library in the browser, since the gmaps modules should be in NPM, like https://www.npmjs.com/search?q=ampersand-

I want to know what do you think.

hpneo avatar May 01 '15 03:05 hpneo

I think this sounds awesome. Thanks for all your hard work.

zeroedin avatar May 05 '15 14:05 zeroedin

I've moved 9 modules to NPM so far:

  • https://github.com/hpneo/gmaps.core (https://www.npmjs.com/package/gmaps.core)
  • https://github.com/hpneo/gmaps.controls (https://www.npmjs.com/package/gmaps.controls)
  • https://github.com/hpneo/gmaps.events (https://www.npmjs.com/package/gmaps.events)
  • https://github.com/hpneo/gmaps.geofences (https://www.npmjs.com/package/gmaps.geofences)
  • https://github.com/hpneo/gmaps.geometry (https://www.npmjs.com/package/gmaps.geometry)
  • https://github.com/hpneo/gmaps.layers (https://www.npmjs.com/package/gmaps.layers)
  • https://github.com/hpneo/gmaps.map_types (https://www.npmjs.com/package/gmaps.map_types)
  • https://github.com/hpneo/gmaps.markers (https://www.npmjs.com/package/gmaps.markers)
  • https://github.com/hpneo/gmaps.overlays (https://www.npmjs.com/package/gmaps.overlays)

When I finish to move all the modules I will remove the lib from this repo and create bundles with all of these modules.

hpneo avatar May 09 '15 16:05 hpneo

:+1:

jeduan avatar May 30 '15 14:05 jeduan

:+1:

bbirand avatar Jun 13 '15 04:06 bbirand

:+1:

xenda avatar Jun 18 '15 03:06 xenda

Great idea! +1

reinos avatar Jun 24 '15 14:06 reinos

awesome, maybe one again place into bower. because this file include inside frontend it's should be nice.

viyancs avatar Oct 04 '15 15:10 viyancs

@hpneo Will your project remain available as a gem?

jibiel avatar Oct 23 '15 15:10 jibiel

Sorry, wrong project. I was talking about @xenda's gmapsjs.

jibiel avatar Oct 23 '15 23:10 jibiel

hey hpneo there is no inside callback for geo fence ??

imadarif avatar Feb 03 '16 18:02 imadarif

+1

ejlocop avatar Nov 02 '16 06:11 ejlocop

hi, any updates on this issue ?

kirantpatil avatar Feb 27 '17 08:02 kirantpatil

I'm so sorry, I've been really busy with my daytime job I'm not sure if I can make it.

There is already a bunch of gmaps modules on NPM but they're behind the gmaps master branch, so besides of finishing the split now I have to update the already created packages, and it's a lot of work I can't do right now.

I hope I can make some time for this but I can't assure you.

hpneo avatar Mar 05 '17 15:03 hpneo

Found it here if anybody is looking for the npm repo: https://www.npmjs.com/package/gmaps

DanDvoracek avatar Aug 18 '17 07:08 DanDvoracek

Shame this project has stalled for so many years really made my life easier working with Google Maps API. Anyone thought of picking it back up?

vurso avatar Jun 26 '18 23:06 vurso

Why not you?

jeduan avatar Jun 29 '18 13:06 jeduan

@jeduan don't know if I have the skills for it but you got me thinking I might just do it you know!

vurso avatar Jul 18 '18 21:07 vurso

You probably have all the skills you need or you can learn them easily.

jeduan avatar Jul 19 '18 00:07 jeduan