All Projects â†’ jeffersondanielss â†’ cMaps

jeffersondanielss / cMaps

Licence: MIT license
🎨 Control options and customization of the Google Maps colors, just 1,7 KB.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cMaps

google maps
🗺 An unofficial Google Maps Platform client library for the Rust programming language.
Stars: ✭ 40 (+185.71%)
Mutual labels:  maps, google-api
google-streetview-images
Pull google streetview panoramic images along a route.
Stars: ✭ 45 (+221.43%)
Mutual labels:  maps, google-api
openstreetmap-americana
A quintessentially American map style
Stars: ✭ 89 (+535.71%)
Mutual labels:  maps
mini-map-maker
A tool for automatically generating 3D printable STLs from freely available lidar scan data.
Stars: ✭ 51 (+264.29%)
Mutual labels:  maps
js-markerclusterer
Create and manage clusters for large amounts of markers
Stars: ✭ 92 (+557.14%)
Mutual labels:  maps
ember-google-maps
A friendly Ember addon for working with Google Maps.
Stars: ✭ 93 (+564.29%)
Mutual labels:  maps
flutter-maplibre-gl
A flutter package for showing customizable vector/raster maps with Maplibre GL (forked from tobrun/flutter-mapbox-gl)
Stars: ✭ 69 (+392.86%)
Mutual labels:  maps
skymapper
Mapping astronomical survey data on the sky, handsomely
Stars: ✭ 35 (+150%)
Mutual labels:  maps
flyxc
GPS track visualization, flight planning, live tracking, and more ...
Stars: ✭ 47 (+235.71%)
Mutual labels:  maps
GoogleMapsHelper
An easy to integrate Model Based Google Maps Helper (SVHTTPClient, AFNetworking) That lets you Geo Code , Reverse Geocode, Get Directions , Places Autocomplete.
Stars: ✭ 21 (+50%)
Mutual labels:  maps
geofind
Multiplayer Geographical Guessing Game using PostGIS, Nuxt, Leaflet & Colyseus.
Stars: ✭ 31 (+121.43%)
Mutual labels:  maps
flutter map tile caching
Plugin for 'flutter_map' providing advanced caching functionality, with ability to download map regions for offline use.
Stars: ✭ 66 (+371.43%)
Mutual labels:  maps
oskari-frontend
Frontend implementation for Oskari Map Application Framework
Stars: ✭ 43 (+207.14%)
Mutual labels:  maps
coronavirus-map-dashboard
🦠 Coronavirus (COVID-19) Map Dashboard using coronavirus-tracker-api
Stars: ✭ 41 (+192.86%)
Mutual labels:  maps
30DayMapChallenge
My contributions to the #30DayMapChallenge 2019, a daily challenge focusing on spatial visualizations happening throughout November.
Stars: ✭ 170 (+1114.29%)
Mutual labels:  maps
30DayMapChallenge
The official website for #30DayMapChallenge, It is a daily mapping/cartography/data visualization challenge aimed at the spatial community. Code for map submissions.
Stars: ✭ 33 (+135.71%)
Mutual labels:  maps
svelte-googlemaps
Svelte Google Maps Components
Stars: ✭ 62 (+342.86%)
Mutual labels:  maps
Samples-JS-PHP
JavaScript and PHP samples for Stimulsoft Reports.PHP reporting tool.
Stars: ✭ 17 (+21.43%)
Mutual labels:  maps
JFXGoogleDrive
A JavaFX Google Drive Client (For Demonstration Purposes Only).
Stars: ✭ 29 (+107.14%)
Mutual labels:  google-api
gapi-to-graphql
Converts any Google Data Api to GraphQL
Stars: ✭ 82 (+485.71%)
Mutual labels:  google-api

Custom Maps

Control options and customization of the Google Maps colors, just 1,7 KB.

Preview

Install

yarn add cmaps

After installing, include the scripts in html.

<script src="node_modules/cmaps/dist/cMaps.min.js"></script>

Wrapper map need be something like:

<div id="map"></div>

Starting map

var map = new cMaps(options);

Options

Option Type Description Example Required
wrapperId string Container id map 'map' true
Key string Google API Key 'api_key' true
pinLat number pin latitude -23.562353 true
pinLng number pin latitude -46.503113 true
mapLat number map latitude -23.562353 true
mapLng number map latitude -46.503113 true
styles array google styles [{},{}] true
name string Map name 'cMaps' false
icon string url to pin the way 'imgs/pin.png' false
zoom number Initial zoom map 16 false
zoomControl boolean Manual zoom control true false
scrollwheel boolean Mouse scroll for zoom false false
mapTypeControl boolean Choose the map type in the upper left corner true false
draggable boolean If this option is false the map can not be dragged true false
streetView boolean Control street view false false

Usage

// *Example* Code that was exported from Styled Maps Wizard or Snazzy Maps
var styles = [{"featureType":"all","elementType":"labels","stylers":[{"visibility":"on"}]} ...];

var map = new cMaps({
  'name': 'cMap',
  'wrapperId':'map',
  'pinLat': -23.562353,
  'pinLng': -46.503113,
  'mapLat': -23.562353,
  'mapLng': -46.503113
  'styles': styles,
  'key': 'YOUR_API_KEY'
});

Style

Use the Styled Maps Wizard or Snazzy Maps to export a JSON with all possible options and include as a parameter to the cMap.

Example

You can see this example in localhost:8080, enter in example directory:

yarn start

Disclaimer

In the example folder has an demonstration of everything working if necessary :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].