{"id":15251098,"url":"https://github.com/hentrymartin/rc-here-maps","last_synced_at":"2025-08-03T23:03:35.826Z","repository":{"id":57262829,"uuid":"150541458","full_name":"hentrymartin/rc-here-maps","owner":"hentrymartin","description":"React components implemented on top of Here Maps API","archived":false,"fork":false,"pushed_at":"2019-03-01T11:25:31.000Z","size":888,"stargazers_count":15,"open_issues_count":4,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T12:58:14.778Z","etag":null,"topics":["heremaps","javascript","javascript-library","maps","reactjs","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hentrymartin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-27T06:46:04.000Z","updated_at":"2024-10-15T07:45:25.000Z","dependencies_parsed_at":"2022-09-01T10:20:30.178Z","dependency_job_id":null,"html_url":"https://github.com/hentrymartin/rc-here-maps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hentrymartin%2Frc-here-maps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hentrymartin%2Frc-here-maps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hentrymartin%2Frc-here-maps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hentrymartin%2Frc-here-maps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hentrymartin","download_url":"https://codeload.github.com/hentrymartin/rc-here-maps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143667,"owners_count":21054819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["heremaps","javascript","javascript-library","maps","reactjs","wrapper"],"created_at":"2024-09-29T17:06:21.888Z","updated_at":"2025-04-10T20:11:08.938Z","avatar_url":"https://github.com/hentrymartin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RC Here Maps\n\n[![Build Status](https://semaphoreapp.com/api/v1/projects/d4cca506-99be-44d2-b19e-176f36ec8cf1/128505/badge.svg)](https://semaphoreapp.com/boennemann/badges)\n[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/hentrymartin/rc-here-maps)\n[![npm](https://img.shields.io/badge/npm-v1.1.5-green.svg)](https://www.npmjs.com/package/rc-here-maps)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)\n\nHere Maps provide amazing api's to add map using Javascript. This is a React wrapper for Here Maps API. Right now, this library gives functionalities like creating map and adding objects like Marker, Polygon, Polyline, Rectangle and Circle on top of it.\n\n### How to install it\n\nIt's pretty easy to install this library in your react app,\n\n`npm install rc-here-maps`\n\n### Prerequisite\n\nCopy the following snippet and paste it in your html file,\n\n```html\n  \u003clink href=\"https://js.api.here.com/v3/3.0/mapsjs-ui.css\" rel=\"stylesheet\"\u003e\n\n  \u003cscript src=\"https://js.api.here.com/v3/3.0/mapsjs-core.js\" type=\"text/javascript\" charset=\"utf-8\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://js.api.here.com/v3/3.0/mapsjs-service.js\" type=\"text/javascript\" charset=\"utf-8\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://js.api.here.com/v3/3.0/mapsjs-mapevents.js\" type=\"text/javascript\" charset=\"utf-8\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://js.api.here.com/v3/3.0/mapsjs-ui.js\" type=\"text/javascript\" charset=\"utf-8\"\u003e\u003c/script\u003e\n```\n\n### Demo\n\nYou can see the demo of this library [here](https://hentrymartin.github.io/rc-here-maps-example/)\n\n### Basic Usage\n\n```javascript\nimport React, { Component } from 'react';\nimport { HereMap, Marker, Polyline, Polygon, Circle, Rectangle, PathFinder } from 'rc-here-maps';\n\nclass MapDemo extends Component {\n  constructor(props) {\n    super(props);\n\n    this.center = {\n      lat: 52.51,\n      lng: 13.4,\n    };\n\n    this.bounds = {\n      north: 53.1,\n      south: 13.1,\n      east: 43.1,\n      west: 40.1,\n    };\n  }\n  onPolylineDrawn = () =\u003e {\n    console.log('polyline drawn');\n  };\n\n  onPolygonDrawn = () =\u003e {\n    console.log('Polygon drawn');\n  };\n\n  onCircleDrawn = () =\u003e {\n    console.log('circle drawn');\n  };\n\n  onRectangleDrawn = () =\u003e {\n    console.log('rectangle drawn');\n  };\n\n  render() {\n    return (\n      \u003cdiv className=\"map-wrapper\"\u003e\n        \u003cHereMap appId=\"YYYY\" appCode=\"XXXX\" useHTTPS={false} center={this.center}\u003e\n          \u003cMarker lat={52.21} lng={48.12}\u003e\n            This is a sample marker\n          \u003c/Marker\u003e\n\n          \u003cPolyline\n            dataPoints={[52, 48, 100, 42, 77, 100]}\n            strokeColor=\"#HexCode\"\n            lineWidth={3}\n            onPolylineDrawn={this.onPolylineDrawn}\n          /\u003e\n\n          \u003cPolygon\n            dataPoints={[52, 48, 100, 42, 77, 100]}\n            fillColor=\"#HexCode\"\n            strokeColor=\"#HexCode\"\n            lineWidth={3}\n            onPolylineDrawn={this.onPolygonDrawn}\n          /\u003e\n\n          \u003cCircle\n            center={this.center}\n            radius={1000}\n            fillColor=\"#HexCode\"\n            strokeColor=\"#HexCode\"\n            onCircleDrawn={this.onCircleDrawn}\n          /\u003e\n\n          \u003cRectangle\n            bounds={this.bounds}\n            fillColor=\"#HexCode\"\n            strokeColor=\"#HexCode\"\n            onRectangleDrawn={this.onRectangleDrawn}\n          /\u003e\n\n          \u003cPathFinder waypoints={[{ lat: 52.516, lng: 13.3779 }, { lat: 52.5206, lng: 13.3862 }]} /\u003e\n          \u003cPathFinder\n            waypoints={[{ lat: 52.516, lng: 13.3779 }, { lat: 52.518, lng: 13.4062 }, { lat: 52.519, lng: 13.4162 }]}\n            style={{\n              lineWidth: 10,\n              strokeColor: 'rgba(220, 220, 0, 0.9)',\n            }}\n          /\u003e\n        \u003c/HereMap\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default MapDemo;\n```\n\n### Documentation\n\nYou can view the documentation [here](https://github.com/hentrymartin/rc-here-maps/blob/master/DOCUMENTATION.md)\n\nFeel free to contribute to this repo by raising PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhentrymartin%2Frc-here-maps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhentrymartin%2Frc-here-maps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhentrymartin%2Frc-here-maps/lists"}