GithubHelp home page GithubHelp logo

Custom basemap not working about cmv-calcite-maps HOT 5 CLOSED

cmv avatar cmv commented on July 23, 2024
Custom basemap not working

from cmv-calcite-maps.

Comments (5)

tmcgee avatar tmcgee commented on July 23, 2024

Hmmm. The configuration for the basemap widget is the same for both cmv and cmv+calcite. Could you please provide an example of a custom basemap that does not work in cmv-calcite?

from cmv-calcite-maps.

mtabdar avatar mtabdar commented on July 23, 2024

The exact lines provided in basemap docs also created a cache tile in arcgis server and point the url to it. Let me mention that it seems that "Basemap" is not recognized although it is in both define and function of viewer.js

from cmv-calcite-maps.

mtabdar avatar mtabdar commented on July 23, 2024

mapOptions: {
basemap: new Basemap({
id: 'basemap1',
layers: [new BasemapLayer({
url: 'http://ServerName/arcgis/rest/services/BaseMapName/MapServer'
})]
}),
center: new Point({
x: 6356023.515330248,
y: 1917313.443425702,
spatialReference: {
wkid: 102642
}
}),
zoom: 5,
sliderStyle: 'small',
showAttribution: true
}

from cmv-calcite-maps.

tmcgee avatar tmcgee commented on July 23, 2024

If Basemap is not recognized, then there is a problem with the module(s) in the define or the perhaps more likely the arguments to the function at the top of viewer.js. Check the number and order of the arguments.

from cmv-calcite-maps.

mtabdar avatar mtabdar commented on July 23, 2024

I checked but the issue remains. I noticed whichever of the three "basemap basemaplyer or point" is put first in function the issue arises at that one!
Anyway i found a workaround it i edited my local init.js file of arcgis js api and put my own url instead of street url and voila!
Thank you very much anyway

from cmv-calcite-maps.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.