OkMap forum
OkMap forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Forum OkMap - Italiano
 Nuove funzionalità
 Api key required e OpenCycleMap
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Marco N

Italy
108 Posts

Posted - 12/09/2018 :  21:06:40  Show Profile  Reply with Quote
È possibile far in modo da poter inserire la chiave per togliere quel fastioso messaggio dalla mappa?

okmap

Italy
2566 Posts

Posted - 13/09/2018 :  18:43:42  Show Profile  Visit okmap's Homepage  Reply with Quote
Si certo.
Devi sottoscrivere l'abbonamento a pagamento nel loro sito.
Quindi crei un nuovo mapserver nella funziona Lista - server mappe del tutto identico a quello già esistente aggiungendo la chiave api che ti forniscono loro.
Go to Top of Page

Marco N

Italy
108 Posts

Posted - 13/09/2018 :  21:08:50  Show Profile  Reply with Quote
Mamma, che fatica.

Ho fatto così:

1. Ho creato un account gratuito su http://www.thunderforest.com/pricing/ e poi a forza di prova e riprova sono arrivato a questa pappardella che funziona (ovviamnte agli asterischi va sostituita la key rilasciata):

2. Nell'elenco server mappe:

new OpenLayers.Layer.OSM("OpenCycleMap Cycle", ["http://a.tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=***", "http://b.tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=***", "http://c.tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=***"], { type: 'png', displayOutsideMaxExtent: true, isBaseLayer: true});

Edited by - Marco N on 13/09/2018 21:09:59
Go to Top of Page

okmap

Italy
2566 Posts

Posted - 14/09/2018 :  10:29:38  Show Profile  Visit okmap's Homepage  Reply with Quote
Dai non è stato così difficile .
Funziona tutto?
Go to Top of Page

Marco N

Italy
108 Posts

Posted - 14/09/2018 :  12:31:19  Show Profile  Reply with Quote
Più comodo era inserire la chiave direttamente in un campo tipo quello che serve per il geocoding :-P
Go to Top of Page

okmap

Italy
2566 Posts

Posted - 14/09/2018 :  16:19:50  Show Profile  Visit okmap's Homepage  Reply with Quote
Non l'ho fatto perché ogni fornitore di mappe ha la sua sintassi.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
OkMap forum © 2018 OkMap Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07