question

NicolsAndrsEspinozaOrellana-2181 avatar image
0 Votes"
NicolsAndrsEspinozaOrellana-2181 asked rbrundritt commented

Error to install Azure Maps Indoor Module

Hi Microsoft comunity,

I have a problem after the comand "npm install azure-maps-indoor". The message or response is the next:

  npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\user\package.json'
  npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\user\package.json'
  npm WARN user No description
  npm WARN user No repository field.
  npm WARN user No README data
  npm WARN user No license field.
        
     + azure-maps-indoor@0.1.2
     updated 1 package and audited 68 packages in 1.818s
        
     9 packages are looking for funding
       run `npm fund` for details
        
     found 0 vulnerabilities


I'm working with the tutorial https://docs.microsoft.com/en-us/azure/azure-maps/tutorial-creator-indoor-maps and now I'm in the next step https://docs.microsoft.com/en-us/azure/azure-maps/how-to-use-indoor-module but this error doesn't look like a good news but the command generate a file named "package-lock.json" and I don't know how to work on this point. If somebody help me I'll apreciate so much.

Best regards!


azure-maps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Hello @NicolsAndrsEspinozaOrellana-2181 Sorry for the delay, please let us know if you are still blocked in this matter. Please have a look at the below steps.

1) cd to the right directory where package.json exists, then run npm install

2) If you want to create a new package.json, then run npm init --->press ENTER in current directory-->now run npm install.

Please comment in the below section.

1 Vote 1 ·

Thanks for the answer @SatishBoddu-MSFT
Yes, I'm still stuck in this step. So, if I want to create a package.json, the comand I have to run first is npm init azure-maps-indoor and then npm install azure-maps-indoor? I'm just checking the complete commands.




UPDATE: I already used the commands, Thanks for help.


0 Votes 0 ·

1 Answer

rbrundritt avatar image
1 Vote"
rbrundritt answered rbrundritt commented

There are two ways you can use the Azure Maps indoor module. You can pull in the NPM package like you are trying to do, this requires your project to have a project.json file (this is required when using any NPM package). You should only take this approach if using TypeScript or if you want to self host the source code. Details on creating a package.json file can be found here: https://docs.npmjs.com/creating-a-package-json-file

If using JavaScript, you should use the CDN hosted version of the module and simply add the script tag to your app as described in these docs: https://docs.microsoft.com/en-us/azure/azure-maps/how-to-use-indoor-module

If you are using the NPM package for TypeScript, it is often useful to use the CDN version as well in your app rather than self hosting the source code. This ensures bug fixes automatically flow into your app.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Mr. @rbrundritt thanks for the answer, this help to understand how this work.

But I have another question. How can I update (automatically) the temperature of a room, for example, in a Azure Map Indoor with external data injection? From LoraWAN sensors specifically or TheThingsNetwork API's, or MQTT API's and more.

Best regards and thank you again.

0 Votes 0 ·
rbrundritt avatar image rbrundritt NicolsAndrsEspinozaOrellana-2181 ·

To do this you would pass the data into Azure Digital twins and then connect that up to Azure Maps Creator as detail in this documentation: https://docs.microsoft.com/en-us/azure/digital-twins/how-to-integrate-maps

0 Votes 0 ·