Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

need small change when updating to newer API #10

Open
hqm opened this issue Sep 26, 2018 · 0 comments
Open

need small change when updating to newer API #10

hqm opened this issue Sep 26, 2018 · 0 comments

Comments

@hqm
Copy link

hqm commented Sep 26, 2018

Something had changed a little from the version of the API you use in your example, and a couple of things were not quite working so I tried updating to newer version

<!-- Mabpox GL -->
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.46.0/mapbox-gl.css' rel='stylesheet' />

<script src='//api.tiles.mapbox.com/mapbox.js/plugins/geo-viewport/v0.1.1/geo-viewport.js'></script>

I had to make a small change for an API call

	map.addControl(new mapboxgl.NavigationControl(), 'top-right');

I forget if I changed anything else, here' a link to the code I copied and tweaked

https://www.relativotey.org/district-mapping.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant